<{include file="library/form.html"}>

<{include file="library/select2.html"}>

<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <form action="<{$saveurl}>" method="post" class="form-horizontal zxform zxblockui">
                <input type="hidden" name="id" value="<{$id}>" />
                <input type="hidden" name="data_date" value="<{$data_date}>" />
                <div class="widget-box">
                    <div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
                        <h5>关闭【<{$data_date}>】日程 - <{if $info_rs}>修改<{else}>添加<{/if}></h5>
                    </div>
                    <div class="widget-content nopadding">
                        <div class="control-group">
                            <label class="control-label">时间段 :</label>
                            <div class="controls textlabel checkboxdiv">
                                <{foreach item=i key=k from=$course_time_rs}>
                                <label>
                                    <input type="checkbox" value="<{$i.id}>" name="time[]" <{if $i.id|in_array:$info_rs.time_array}>checked<{/if}>/> <{$i.name}>
                                </label>
                                <{/foreach}>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">禁用目录 :</label>
                            <div class="controls textlabel checkboxdiv">
                                <{foreach item=i key=k from=$cato}>
                                <label>
                                    <input type="checkbox" value="<{$i.id}>" name="cato[]" <{if $i.id|in_array:$info_rs.cato_array}>checked<{/if}>/> <{$i.name}>
                                </label>
                                <{/foreach}>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-actions">
                    <button type="submit" class="btn btn-success">保存</button>
                    <{if $info_rs}>
                    <button type="button" class="btn btn-danger" zxhref="<{spUrl c=$G__C a=delete id=$info_rs.id}>"  zxalert="确认删除该日程吗?" onclick="general_post_function(this)">删除</button>
                    <{/if}>
                </div>
            </form>
        </div>
    </div>
</div>
